package com.fqxl.labour.controller;

import com.fqxl.labour.domain.LabourBusinessLicense;
import com.fqxl.labour.service.BusinessLicenseService;
import com.fqxl.labour.untils.R;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/businessLicense")
@Api(tags = "上传营业执照")
public class BusinessLicenseController {

    @Autowired
    private BusinessLicenseService businessLicenseService;

    /**
     * 上传营业执照
     * @param labourBusinessLicense
     * @return
     */
    @ApiOperation("上传营业执照")
    @PostMapping("addBusinessLicense")
    public R addBusinessLicence(@RequestBody LabourBusinessLicense labourBusinessLicense){
        return businessLicenseService.addBusinessLicence(labourBusinessLicense);
    }
}
